package com.ruoyi.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品类型管理对象 t_goods_type
 * 
 * @author zxr
 * @date 2023-06-19
 */
public class GoodsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品类别id，主键 */
    @Excel(name = "商品类别id，主键")
    private Integer goodsTypeId;

    /** 商品类别名称 */
    @Excel(name = "商品类别名称")
    private String goodsTypeName;

    /** 父商品类别id */
    @Excel(name = "父商品类别id")
    private Integer pId;

    /** 类别状态，0为叶子节点 */
    @Excel(name = "类别状态，0为叶子节点")
    private Integer goodsTypeState;

    public void setGoodsTypeId(Integer goodsTypeId) 
    {
        this.goodsTypeId = goodsTypeId;
    }

    public Integer getGoodsTypeId() 
    {
        return goodsTypeId;
    }
    public void setGoodsTypeName(String goodsTypeName) 
    {
        this.goodsTypeName = goodsTypeName;
    }

    public String getGoodsTypeName() 
    {
        return goodsTypeName;
    }
    public void setpId(Integer pId) 
    {
        this.pId = pId;
    }

    public Integer getpId() 
    {
        return pId;
    }
    public void setGoodsTypeState(Integer goodsTypeState) 
    {
        this.goodsTypeState = goodsTypeState;
    }

    public Integer getGoodsTypeState() 
    {
        return goodsTypeState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsTypeId", getGoodsTypeId())
            .append("goodsTypeName", getGoodsTypeName())
            .append("pId", getpId())
            .append("goodsTypeState", getGoodsTypeState())
            .toString();
    }
}
